﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace entity
{

    [Serializable]
    public class NewsList
    {
        /// <summary>
        /// 新闻主键
        /// </summary>
        public long? Id
        {
            get;
            set;
        }

        /// <summary>
        /// 新闻标题
        /// </summary>
        public string Title
        {
            get;
            set;
        }

        /// <summary>
        /// 新闻重要程度
        /// </summary>
        public int? Step
        {
            get;
            set;
        }

        /// <summary>
        /// 外链
        /// </summary>
        public string Url
        {
            get;
            set;
        }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime? PTime
        {
            get;
            set;
        }

        /// <summary>
        /// 来源
        /// </summary>
        public string Source
        {
            get;
            set;
        }

        /// <summary>
        /// 图片路径
        /// </summary>
        public string ImageUrl
        {
            get;
            set;
        }

        public int? Nature
        {
            get;
            set;
        }
        /// <summary>
        /// 关键字
        /// </summary>
        public string KeyWord
        {
            get;
            set;
        }
        /// <summary>
        /// 发布时间
        /// </summary>
        public string SPTime
        {
            get
            {
                if (PTime == null)
                {
                    return string.Empty;
                }
                else
                {
                    return PTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
                }
            }
        }
        public string Summary
        {
            get;
            set;
        }
    }
}